package org.x.auth;

import cn.dev33.satoken.SaManager;
import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.metrics.buffering.BufferingApplicationStartup;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@EnableDubbo
@SpringBootApplication(scanBasePackages = {"org.x"})
@EnableDiscoveryClient  // 开启服务发现
public class AuthApplication {
    public static void main(String[] args) {
        SpringApplication application = new SpringApplication(AuthApplication.class);
        application.setApplicationStartup(new BufferingApplicationStartup(2048));
        application.run(args);
        System.out.println("启动成功，Sa-Token 配置如下：" + SaManager.getConfig());

    }
}